package de.definitives.creoleconverter.document;

import de.definitives.creoleconverter.renderer.Renderer;

/**
 * Encapsualtes a portions of text, which does not containing other elements.
 * The content of this Component will be renedered as is.
 *
 * @author Christian Helmbold
 */
public class Text implements Component {

    private String content;

    public Text(String content) {
        this.content = content;
    }

    public String getContent() {
        return content;
    }

    public void renderWith(Renderer renderer) {
        renderer.render(this);
    }

}
